package com.heima.apis.admin;

import com.heima.model.admin.dtos.AdChannelDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

@Api(tags = "频道管理控制类Controller")
public interface ADChannelControllerApi {

    @ApiOperation("根据频道名称分页查询频道列表")
    ResponseResult findByNameAndPage(AdChannelDto dto);

    @ApiOperation("新增频道信息")
    ResponseResult insert(AdChannel adChannel);

    @ApiOperation("修改频道信息")
    ResponseResult update(AdChannel adChannel);

    @ApiOperation("删除频道信息")
    ResponseResult delete(@ApiParam(value = "文档ID" ,example = "2") Integer id);

    ResponseResult findAll();
}
